//
//  UILabel+Extension.swift
//  Weibo
//
//  Created by apple on 15/12/21.
//  Copyright © 2015年 Leon. All rights reserved.
//

import UIKit

extension UILabel {
    convenience init(title:String,color:UIColor,fontSize:CGFloat) {
        self.init()
        //意味可以获取到一个被实例化的对象
        text = title
        textColor = color
        textAlignment = .Center
        font = UIFont.systemFontOfSize(fontSize)
        numberOfLines = 0
        sizeToFit()
    }
}